package cl.tinet.trainee.bean;

import java.util.List;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import cl.tinet.trainee.dto.ProductoDTO;

/**
 * Session Bean implementation class CarroDetalleBean
 */
@Stateless
public class CarroDetalleBean implements CarroDetalleBeanLocal {
	@PersistenceContext(unitName="conexionTest")
	private EntityManager entityManager;
    /**
     * Default constructor. 
     */
    public CarroDetalleBean() {
        // TODO Auto-generated constructor stub
    }
    
    public List<ProductoDTO> agregarProductoCarro(List<ProductoDTO> listaProducto,ProductoDTO producto){
    	return listaProducto;
    }
	public EntityManager getEntityManager() {
		return entityManager;
	}
	public void setEntityManager(EntityManager entityManager) {
		this.entityManager = entityManager;
	}

}
